package _org;

public class DagElementFactory {
	private RenderDevice device;
	
	private int ids = 0;
	
	public DagElementFactory(RenderDevice device) {
		this.device = device;
	}
	
	public DagElement getElement(String kind, String tag, String content) {
		DagElement ret = new DagElement(++ids, kind, tag, content);
		ret = device.render(ret);
		return ret;
	}

	public DagElement getRoot() {
		return new DagElement(0, "XML", "ROOT", "");
	}
}
